package com.mti.app.controller
{
	import com.mti.app.model.ChoiceProxy;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class LoadChoiceCommand extends SimpleCommand implements ICommand
	{
		private var choiceProxy:ChoiceProxy;
		
		override public function execute(notification:INotification):void
		{
			choiceProxy = facade.retrieveProxy(ChoiceProxy.NAME) as ChoiceProxy;
			
			choiceProxy.load(String (notification.getBody()));
		}
		
	}
}